package com.ruoyi.web.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 操作日志记录
 * </p>
 *
 * @author lh
 * @since 2025-01-16
 */
public class Sys_oper_log implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 日志主键
     */
    @TableId(value = "oper_id", type = IdType.AUTO)
    private Long oper_id;

    /**
     * 模块标题
     */
    private String title;

    /**
     * 业务类型（0其它 1新增 2修改 3删除）
     */
    private Integer business_type;

    /**
     * 方法名称
     */
    private String method;

    /**
     * 请求方式
     */
    private String request_method;

    /**
     * 操作类别（0其它 1后台用户 2手机端用户）
     */
    private Integer operator_type;

    /**
     * 操作人员
     */
    private String oper_name;

    /**
     * 部门名称
     */
    private String dept_name;

    /**
     * 请求URL
     */
    private String oper_url;

    /**
     * 主机地址
     */
    private String oper_ip;

    /**
     * 操作地点
     */
    private String oper_location;

    /**
     * 请求参数
     */
    private String oper_param;

    /**
     * 返回参数
     */
    private String json_result;

    /**
     * 操作状态（0正常 1异常）
     */
    private Integer status;

    /**
     * 错误消息
     */
    private String error_msg;

    /**
     * 操作时间
     */
    private Date oper_time;

    /**
     * 消耗时间
     */
    private Long cost_time;


    public Long getOper_id() {
        return oper_id;
    }

    public void setOper_id(Long oper_id) {
        this.oper_id = oper_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getBusiness_type() {
        return business_type;
    }

    public void setBusiness_type(Integer business_type) {
        this.business_type = business_type;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getRequest_method() {
        return request_method;
    }

    public void setRequest_method(String request_method) {
        this.request_method = request_method;
    }

    public Integer getOperator_type() {
        return operator_type;
    }

    public void setOperator_type(Integer operator_type) {
        this.operator_type = operator_type;
    }

    public String getOper_name() {
        return oper_name;
    }

    public void setOper_name(String oper_name) {
        this.oper_name = oper_name;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public String getOper_url() {
        return oper_url;
    }

    public void setOper_url(String oper_url) {
        this.oper_url = oper_url;
    }

    public String getOper_ip() {
        return oper_ip;
    }

    public void setOper_ip(String oper_ip) {
        this.oper_ip = oper_ip;
    }

    public String getOper_location() {
        return oper_location;
    }

    public void setOper_location(String oper_location) {
        this.oper_location = oper_location;
    }

    public String getOper_param() {
        return oper_param;
    }

    public void setOper_param(String oper_param) {
        this.oper_param = oper_param;
    }

    public String getJson_result() {
        return json_result;
    }

    public void setJson_result(String json_result) {
        this.json_result = json_result;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public Date getOper_time() {
        return oper_time;
    }

    public void setOper_time(Date oper_time) {
        this.oper_time = oper_time;
    }

    public Long getCost_time() {
        return cost_time;
    }

    public void setCost_time(Long cost_time) {
        this.cost_time = cost_time;
    }

    @Override
    public String toString() {
        return "Sys_oper_log{" +
        "oper_id=" + oper_id +
        ", title=" + title +
        ", business_type=" + business_type +
        ", method=" + method +
        ", request_method=" + request_method +
        ", operator_type=" + operator_type +
        ", oper_name=" + oper_name +
        ", dept_name=" + dept_name +
        ", oper_url=" + oper_url +
        ", oper_ip=" + oper_ip +
        ", oper_location=" + oper_location +
        ", oper_param=" + oper_param +
        ", json_result=" + json_result +
        ", status=" + status +
        ", error_msg=" + error_msg +
        ", oper_time=" + oper_time +
        ", cost_time=" + cost_time +
        "}";
    }
}
